<template>
	<view class="wrap">
		<view class="custom-header">
			<view class="title">{{ '说明' }}</view>
		</view>
		<view class="content">
			<view class="item">
				<view class="label">1. 使用场景</view>
				<view class="value">文件为svga格式，可用于小程序、APP、H5等等等，多端兼容，性能无忧</view>
			</view>
			<view class="item">
				<view class="label">2. 技术支持</view>
				<view class="value">提供完整demo，开箱即用。可远程技术支持。</view>
			</view>
			<view class="item">
				<view class="label">3. ... ... </view>
				<view class="value"></view>
			</view>
		</view>
		<view class="footer-btn">
			<button shape="round" class="button" @click="openModal('../../static/1.png')">联系TA</button>
			<!-- <view class="lianxi"  @click="openModal('../../static/1.png')">联系TA</view> -->
		</view>
		<!-- 弹窗 -->
		<custom-modal :visible="modalVisible">
			<!-- 模态框的内容 -->
			<view class="module">
				<image :src="dialogUrl" show-menu-by-longpress="true"></image>
				<view class="press">上按识别二维码</view>
				<button class="button button1" @click="closeModal">关闭</button>
			</view>
		</custom-modal>
	</view>
</template>

<script>
	import CustomModal from './conponent/dialog.vue'
	export default {
		components: {
			CustomModal
		},
		data() {
			return {
				modalVisible: false,
				dialogUrl: require('../../static/1.png')
			};
		},
		methods: {
			openModal(e) {
				// 打开模态框  
				this.modalVisible = true;
				this.dialogUrl = e
			},
			closeModal() {
				// 关闭模态框  
				this.modalVisible = false;
			}
		}
	};
</script>


<style scoped lang="scss">
	.module {

		// height: 600rpx;
		// width: 400prx;
		.press {
			width: 100%;
			text-align: center;
			margin: 10rpx 0 30rpx;
			font-size: 30rpx;
			text-decoration: #999;
			color: #999;
		}

		image {
			height: 520rpx;
		}
	}

	.custom-header {
		display: flex;
		justify-content: space-between;
		justify-content: center;
		align-items: center;
		height: 180rpx;
		background-color: #f7f7f7;

		.title {
			font-size: 18px;
			padding-top: 80rpx;
		}
	}

	.content {
		padding: 0 30rpx;

		.item {
			margin-top: 30rpx;

			.label {
				font-weight: 600;
				font-size: 28rpx;
				color: #333;
			}

			.value {
				text-indent: 2em;
				margin-top: 16rpx;
				color: #999;
			}
		}
	}

	.footer-btn {
		margin-top: 700rpx;
	}

	.button {
		padding: 34.62rpx 0px;
		border-radius: 192.31rpx;
		background-image: linear-gradient(101.9deg, #ffaa00 0%, #d9d9ce 100%) !important;
		border: unset;
		height: 90.46rpx;
		background-size: cover;
		background-color: unset !important;
		background-repeat: no-repeat;
		color: #ffffff !important;
		font-family: Inter;
		font-size: 46.15rpx;
		line-height: 32.31rpx;
		width: 86%;
		margin-left: auto;
		margin-right: auto;
	}

	.button1 {
		height: 40.46rpx;
		font-size: 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-image: linear-gradient(101.9deg, #46d61a 0%, #109810 100%) !important;
	}

	.lianxi {
		width: 100%;
		text-align: center;
		margin-top: 30rpx;
		font-size: 32rpx;
		text-decoration: #999;
		color: #999;
		text-decoration: underline;
		font-style: italic;
	}
</style>